package com.ts.enterprise.module.user.query.update;


import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *
 * @author dean
 * @date 2021-07-14 16:14:40
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserUpdateQuery {

    @NotNull(message = "id参数缺失")
    private Long id;

    @NotBlank(message = "姓名为空")
    @ApiModelProperty(value = "姓名/昵称")
    @Length(max = 25,message = "字段数过多")
    private String nickname;

    @NotNull(message = "角色id为空")
    @ApiModelProperty(value = "角色id")
    @Min(1)
    private Integer roleId;

    @NotNull(message = "计件方式为空")
    @ApiModelProperty(value = "默认 1 计件方式 1 扫码上数  2 上数管理和扫码上数   3 禁用上数管理和扫码上数")
    private Integer calculateType;

    @NotNull(message = "上数方式为空")
    @ApiModelProperty(value = "默认 1 上数方式 1 自己  2 自己和其他员工")
    private Integer numberType;

    @ApiModelProperty(value = "查看价格 默认  0 禁止  1 允许")
    private Integer showPrice;

    @ApiModelProperty(value = "查看IE核价 默认  0 禁止  1 允许")
    private Integer showIePrice;

    @ApiModelProperty(value = "查看工资默认 0 不允许  1 允许")
    private Integer showSalary;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "部门id")
    private Long departmentId;

    @ApiModelProperty(value = "备注")
    @Length(max = 500,message = "字段数过多")
    private String remark;

}
